<template>
  <div>
      {{count}}
      <button @click='inc' >add +++</button>
      <br/>
      <router-link to=''>0</router-link>
      <router-link to='1'>1</router-link>
      <router-view ></router-view>
  </div>
</template>
<script lang="ts">
import Vue from 'vue'
import { Component, Prop,Emit } from "vue-property-decorator";
// import { mapMutations } from 'vuex'
import {
  State,
  Getter,
  Action,
  Mutation,
  namespace
} from 'vuex-class'
@Component
export default class RouterTest extends Vue{
  @Mutation('increment') inc:void
  @State('count') count:Number
}
</script>
